package com.xc.hotelmgr.datapusherali.service.mybatis.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.hotelmgr.datapusherali.mapper.OpHtlPriceMapper;
import com.xc.hotelmgr.datapusherali.pojo.mybatis.OpHtlPrice;
import com.xc.hotelmgr.datapusherali.service.mybatis.OpHtlPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigInteger;
import java.util.List;

@Service
public class OpHtlPriceServiceImpl extends ServiceImpl<OpHtlPriceMapper, OpHtlPrice> implements OpHtlPriceService {

    @Autowired
    private OpHtlPriceMapper opHtlPriceMapper;

    @Override
    public List<OpHtlPrice> listAll() {
        return opHtlPriceMapper.listAll();
    }

    @Override
    public OpHtlPrice getById(Integer id) {
        return opHtlPriceMapper.getById(id);
    }

    @Override
    public int insert(OpHtlPrice opHtlPrice) {
        return opHtlPriceMapper.insert(opHtlPrice);
    }

    @Override
    public int insertIgnoreNull(OpHtlPrice opHtlPrice) {
        return opHtlPriceMapper.insert(opHtlPrice);
    }

    @Override
    public int update(OpHtlPrice opHtlPrice) {
        return opHtlPriceMapper.update(opHtlPrice);
    }

    @Override
    public int updateIgnoreNull(OpHtlPrice opHtlPrice) {
        return opHtlPriceMapper.updateIgnoreNull(opHtlPrice);
    }

    @Override
    public int delete(OpHtlPrice opHtlPrice) {
        return opHtlPriceMapper.delete(opHtlPrice);
    }

    @Override
    public List<OpHtlPrice> getByStoreIdAndHotelId(int storeId, Long hotelId) {
        return opHtlPriceMapper.getByStoreIdAndHotelId(storeId, hotelId);
    }
}
